package com.gagakuai.transport.channel;

import com.gagakuai.utils.AttributeMap;
import com.gagakuai.utils.concurrent.EventExecutor;
import com.gagakuai.utils.concurrent.EventExecutorGroup;

/*
 * @description: handler 处理上下文
 * @author: houhong
 * @create: 2024-03-19 00:31
 */
public interface ChannelHandlerContext extends AttributeMap, ChannelInboundInvoker, ChannelOutboundInvoker {

    Channel channel();

    EventExecutor executor();


    EventExecutorGroup parent();


    /*
     *
     *  用于判断当前线程是否在当前组内
     */
    boolean inEventLoop(Thread thread);
}
